<?php $this->breadcrumbs=array(
	Yii::t('admin','Products'),
); ?>

<?php $this->menu=array(
	array('label'=>Yii::t('admin','Create Product'),'url'=>array('create')),
); ?>

<h1><?php echo Yii::t('admin','Products'); ?></h1>

<?php $this->widget('zii.widgets.grid.CGridView', array(
	'id'=>'product-grid',
	'dataProvider'=>$model->search(),
	'filter'=>$model,
	'columns'=>array(
		array(
			'name'=>'id',
			'header'=>'#',
		),
		'name',
		array(
			'name'=>'price',
			'value'=>'$data->price.\' EUR\'',
		),
		array(
			'name'=>'created',
			'filter'=>false,
		),
		array(
			'name'=>'updated',
			'filter'=>false,
		),
		array(
			'class'=>'CButtonColumn',
			'template'=>'{update} {delete}',
		),
	),
)); ?>
